#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/12/24 16:21
# @Author  : zzp
# @File    : client
# @Software: PyCharm

class Client(object):
    """
    终端类
    """

    def __init__(self, name):
        self.content_name = None
        self.content_id = None
        self.feature = None
        self.type = 'client'
        self.name = name
        self.num = 0  # 记录分发次数

    def set_content(self, content_id, content_name):
        self.content_id = content_id
        self.content_name = content_name

    def get_content_name(self):
        return self.content_name

    def get_content_id(self):
        return self.content_id

    def set_feature(self, feature):
        self.feature = feature

    def get_feature(self):
        """
        获取客户端特征
        @return:
        """
        return self.feature

    def increase(self):
        self.num += 1
